package com.css.common.core.utils.idworker.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = IdWorkerProperties.PREFIX)
@Component
public class IdWorkerProperties {

    public static final String PREFIX = "idworker";

    private Long workerId = 0L;// 工作ID (0~31)

    private Long datacenterId = 0L;// 数据中心ID (0~31)

    public Long getWorkerId() {
        return workerId;
    }

    public void setWorkerId(Long workerId) {
        this.workerId = workerId;
    }

    public Long getDatacenterId() {
        return datacenterId;
    }

    public void setDatacenterId(Long datacenterId) {
        this.datacenterId = datacenterId;
    }

}
